package com.dodi.spring.mvc;

import javax.persistence.metamodel.SetAttribute;
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class MyDataContextListener implements ServletContextListener {

	private ServletContext context = null;
	
	public MyDataContextListener(){
		
	}
	
	@Override
	public void contextDestroyed(ServletContextEvent event) {

		this.context = null;
	}

	@Override
	public void contextInitialized(ServletContextEvent event) {
		
		String contextLocation = event.getServletContext().getInitParameter("contextLocation");
	
		System.out.println("kdjdkjdkdjj"+contextLocation);
	}

}
